<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
       
    </head>
    <body>
        <script>
        for(var i=0;i<10;i++){
            if(i==5){
               // break;调出当前循环 不再进行再次循环
               continue;//调出本次循环 进行下次循环
            }
            document.write("i="+i+"<br/>");
        }
        </script>

    </body>
</html>